<div class="wrap">
	<div id='ajaxResponse' class="ajaxResponse"></div>
	<h2>Change Position of "{$THECAT->cat_name}"</h2>
	<form name="editpage" id="editpage" method="post" action="?mod=manage&sub1=category">
		<input type="hidden" id="act" name="act" value="change_position"/>
		<input type="hidden" id="cat_id" name="cat_id" value="{$smarty.get.id}"/>
        <input type="hidden" id="cat_parent" name="cat_parent" value="{$smarty.get.catid}"/>
        <input type="hidden" id="position" name="position" value="{$THECAT->cat_position}"/>
				<div class="box">
					<div class="box-content">
						<div class="row">
                            <input type="radio" name="type_change" value="first" />First
                        </div>	
                        <div class="row">
                            <input type="radio" name="type_change" value="after" />After: 
                            <select name="position_id">
                            	{foreach name=cat from=$CATLEVEL item=item}
                                	<option value="{$item->cat_position}">{$item->cat_name}</option>
                                 {/foreach}   
                           </select> 
                        </div>
                        <div class="row">
                            <input type="radio" name="type_change" value="last" />Last
                        </div>
					</div>
				</div>
	<p class="submit" align = "right">
		<input type="image" name="submit" value="Save" />
	</p>
	</form>
</div>
